From b9ce61033c2f5bc6ec8eb3db200b96058f013bf8 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Mon, 17 Nov 2025 12:06:56 +0900
Subject: (김준회) 오류 수정: params and searchParams: Nextjs 15부터 Promise
 타입으로 변경됨: 서버 컴포넌트에서는 await으로 resolve 하도록 처리, Promise
 타입 명시적으로 추가(Generic)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/[lng]/engineering/(engineering)/docu-list-rule/page.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'app/[lng]/engineering/(engineering)/docu-list-rule/page.tsx')

diff --git a/app/[lng]/engineering/(engineering)/docu-list-rule/page.tsx b/app/[lng]/engineering/(engineering)/docu-list-rule/page.tsx
index fed49256..b8d3559f 100644
--- a/app/[lng]/engineering/(engineering)/docu-list-rule/page.tsx
+++ b/app/[lng]/engineering/(engineering)/docu-list-rule/page.tsx
@@ -4,8 +4,9 @@ import { redirect } from "next/navigation"
 export default async function DocumentNumberingPage({
   params,
 }: {
-  params: { lng: string }
+  params: Promise<{ lng: string }>
 }) {
+  const resolvedParams = await params;
   // Code Group 페이지로 리다이렉트
-  redirect(`/${params.lng}/engineering/docu-list-rule/document-class`)
+  redirect(`/${resolvedParams.lng}/engineering/docu-list-rule/document-class`)
 } 
\ No newline at end of file
-- 
cgit v1.2.3

